package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ex-kuangxiaomin101 on 2016-02-18.
 */
public class ServiceRmarkBean implements Parcelable {
    private int id;
    private String comment_user;//评价的用户名
    private String comment_picture;//评价的头像
    private int technology_score;//技术分数
    private int time_score;//准时分数
    private int polite_score;//礼貌分数
    private String comment_desc;//评论的内容

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getComment_user() {
        return comment_user;
    }

    public void setComment_user(String comment_user) {
        this.comment_user = comment_user;
    }

    public String getComment_picture() {
        return comment_picture;
    }

    public void setComment_picture(String comment_picture) {
        this.comment_picture = comment_picture;
    }

    public int getTechnology_score() {
        return technology_score;
    }

    public void setTechnology_score(int technology_score) {
        this.technology_score = technology_score;
    }

    public int getTime_score() {
        return time_score;
    }

    public void setTime_score(int time_score) {
        this.time_score = time_score;
    }

    public int getPolite_score() {
        return polite_score;
    }

    public void setPolite_score(int polite_score) {
        this.polite_score = polite_score;
    }

    public String getComment_desc() {
        return comment_desc;
    }

    public void setComment_desc(String comment_desc) {
        this.comment_desc = comment_desc;
    }

    public ServiceRmarkBean() {
    }

    @Override
    public String toString() {
        return "ServiceRmarkBean{" +
                "id=" + id +
                ", comment_user='" + comment_user + '\'' +
                ", comment_picture='" + comment_picture + '\'' +
                ", technology_score=" + technology_score +
                ", time_score=" + time_score +
                ", polite_score=" + polite_score +
                ", comment_desc=" + comment_desc +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.comment_user);
        dest.writeString(this.comment_picture);
        dest.writeInt(this.technology_score);
        dest.writeInt(this.time_score);
        dest.writeInt(this.polite_score);
        dest.writeString(this.comment_desc);
    }

    protected ServiceRmarkBean(Parcel in) {
        this.id = in.readInt();
        this.comment_user = in.readString();
        this.comment_picture = in.readString();
        this.technology_score = in.readInt();
        this.time_score = in.readInt();
        this.polite_score = in.readInt();
        this.comment_desc = in.readString();
    }

    public static final Creator<ServiceRmarkBean> CREATOR = new Creator<ServiceRmarkBean>() {
        @Override
        public ServiceRmarkBean createFromParcel(Parcel source) {
            return new ServiceRmarkBean(source);
        }

        @Override
        public ServiceRmarkBean[] newArray(int size) {
            return new ServiceRmarkBean[size];
        }
    };
}
